using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using yq.IBase;
using yq.Model.Base;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;

namespace yq.Model.Logic
{
    /// <summary>
    /// Log_User - 用户登录统计 - 对象继承类
    /// </summary>
    [MetadataType(typeof(LogUserValidaTion))]
    public class LogUser : ILogUser<LogUser>
    {


       #region 生成实体类验证属性
       /// <summary>
       /// 辅助验证类
       /// </summary>
       [Bind]
       public class LogUserValidaTion
       {

     

        /// <summary>
        /// logid
        /// </summary>
        [Display(Name ="logid")]
        [Required]
        [StringLength(36)]
        public String LogId
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 账号
        /// </summary>
        [Display(Name ="账号")]
        [Required]
        [StringLength(36)]
        public String UserId
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 登录时间
        /// </summary>
        [Display(Name ="登录时间")]
        [Required]

        public DateTime LogTime
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 登录IP
        /// </summary>
        [Display(Name ="登录IP")]
        [Required]
        [StringLength(50)]
        public String Ip
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 其他信息
        /// </summary>
        [Display(Name ="其他信息")]
        [StringLength(200)]
        public String Other
        {
         get; set; 
        }


       

       
       }
       #endregion 生成实体类验证属性
    }
}
